#!bin/sh

# Flutter Engine 产物
# export ENGINE_DIR=~/work/engine_build/outputs/latest
export ENGINE_DIR=~/work/engine_build/engine
# export ENGINE_DIR=~/work/engine_build/engine_api10
# export ENGINE_DIR=~/work/engine_build/engine_api11

export ENGINE_DEBUG=$ENGINE_DIR/src/out/ohos_debug_unopt_arm64
export ENGINE_PROFILE=$ENGINE_DIR/src/out/ohos_profile_arm64
export ENGINE_RELEASE=$ENGINE_DIR/src/out/ohos_release_arm64

# Flutter 相关
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_HOME=~/work/gitcode/flutter_flutter
export PATH=$FLUTTER_HOME/bin:$PATH

# Flutter Engine 相关
export PATH=~/tools/depot_tools:$PATH

# HarmonyOS 相关
# ---- last-sdk
# export OHOS_DIR=~/tools/ohos-v5.0.3.100
# export OHPM_HOME=$OHOS_DIR/command-line-tools/ohpm
# export HOS_SDK_HOME=$OHOS_DIR/sdk
# export HDC_HOME=$HOS_SDK_HOME/HarmonyOS-NEXT-DB1/base/toolchains
# export OHOS_NDK_HOME=$HOS_SDK_HOME/HarmonyOS-NEXT-DB1/base/native
# --- current-sdk
# export OHOS_DIR=~/tools/ohos-v5.0.3.300/command-line-tools
# export HOS_SDK_HOME=$OHOS_DIR/sdk
# export HDC_HOME=$HOS_SDK_HOME/HarmonyOS-NEXT-DB1/openharmony/toolchains
# export PATH=$HDC_HOME:$OHOS_DIR/bin:$PATH

export TOOL_HOME=/Applications/DevEco-Studio.app/Contents # mac环境
export DEVECO_SDK_HOME=$TOOL_HOME/sdk # command-line-tools/sdk
export PATH=$TOOL_HOME/tools/ohpm/bin:$PATH # command-line-tools/ohpm/bin
export PATH=$TOOL_HOME/tools/hvigor/bin:$PATH # command-line-tools/hvigor/bin
export PATH=$TOOL_HOME/tools/node/bin:$PATH # command-line-tools/tool/node/bin

export HDC_HOME=$DEVECO_SDK_HOME/$(ls $DEVECO_SDK_HOME | head -n 1)/openharmony/toolchains
export PATH=$HDC_HOME:$PATH

export OHOS_NDK_HOME=$DEVECO_SDK_HOME/$(ls $DEVECO_SDK_HOME | head -n 1)/openharmony/native
export PATH=$OHOS_NDK_HOME/build-tools/cmake/bin:$OHOS_NDK_HOME/llvm/bin:$PATH
export OHOS_SDK_HOME=$DEVECO_SDK_HOME


# Java 相关
export JAVA8=/usr/local/opt/openjdk@8
export JAVA17=/usr/local/opt/openjdk@17
export PATH=$JAVA17/bin:$PATH

# Android 相关
export ANDROID_HOME=~/tools/android_sdk
export PATH=$ANDROID_HOME/cmdline-tools/latest/bin:$PATH
export PATH=$ANDROID_HOME/tools:$PATH
export PATH=$ANDROID_HOME/platform-tools:$PATH

export PATH=$PATH:/usr/local/bin

